#!/bin/sh

cat ../manifest/manifest.txt | grep -E '^[a-z]' | grep -v -E '^(vo_|sfx_|sims_|amb_|icon_minigame|landEXP_|mus_|promo_|sting_|ui_|marina|sounds_preloader|skills_SkillBoard|simCashBag|egyptbackground)' > ../manifest/manifest.min.txt

cd ../binary
rm *
cat ../manifest/manifest.min.txt|awk -F, '{print "curl -o "$1" "$3}' | sh

for i in *; do sims.data $i;done

cp *.xml ../xml